package data.join.com.network.iptables;

import java.util.ArrayList;

/**
 * Created by Administrator on 2017/11/3.
 */

public class IptablesExecute extends AExecuteAsRoot {

    @Override
    protected ArrayList<String> getCommandsToExecute() {
        ArrayList<String> cmds = new ArrayList<>();

//        cmds.add("iptables -A OUTPUT -p tcp -m string --string Host: --algo bm -j MARK --set-mark 1");
//        cmds.add("iptables -A OUTPUT -p tcp -m mark --mark 1 -m string --string wangjile --algo bm -j ACCEPT");
//        cmds.add("iptables -A OUTPUT -p tcp -m mark --mark 1 -m string --string mqtt --algo bm -j ACCEPT");
        cmds.add("iptables -A FORWARD -o ccmni1 -j DROP");
        cmds.add("iptables -A FORWARD -o ccmni0 -j DROP");

        return cmds;
    }
}
